package com.kitchen.music.dao;

import com.kitchen.music.entity.Singer;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 歌手Dao
 */
@Repository
public interface SingerMapper {

    int insert(Singer singer);
    int update(Singer singer);
    int delete(Integer id);
    Singer selectByPrimary(Integer id);
    List<Singer> allSinger();
    //模糊查询
    List<Singer> singerOfName(String name);
    //根据性别查询
    List<Singer>singerOfSex(Integer sex);
}
